home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Collections: New Zealand Amiga Users Group
/
New Zealand Amiga Users Group Newsdisk v25 (1989-08)(NZAmigaUG).zip
/
New Zealand Amiga Users Group Newsdisk v25 (1989-08)(NZAmigaUG).adf
/
StrucBrowser
/
sb.src.zoo
/
SBTextAttr.c
< prev
next >
Wrap
C/C++ Source or Header
|
1988-06-22
|
959b
|
35 lines
/************************************************************************
* *
* SBExecBase *
* *
* module written by G. Gagnon, Mar 24, 1987 *
* *
*************************************************************************/
include "sb:sb.h"
extern int level;
void PrTextAttr(string, textattr) char *string; struct TextAttr *textattr;
{
static struct StructData structdata[] = {
{ " ta_Name", "UBYTE *", 4, PTRSIZE },
{ "-ta_YSize", "UWORD", 2, INTSIZE },
{ "-ta_Style", "UBYTE", 3, BYTESIZE },
{ "-ta_Flags", "UBYTE", 3, BYTESIZE }
};
int sum, choice = -1;
level++;
while (choice) {
sum = SetOptionText(string, structdata, (APTR)textattr, DATASIZE, 0);
switch (choice = GetChoice(DATASIZE)) {
case 1:
PrString("ta_Name",textattr->ta_Name);
break;
}
}
level--;
}